<?php
/**
 * IdeasPresenter.php
 * @author Winbeek <winbeek@gmail.com>
 * @since 28 July 2012
 * @version $Id: IdeasPresenter.php 26 2012-07-28 17:47:11Z winbeek $
 */

final class IdeasPresenter extends SecuredPresenter
{
	public function startup()
	{
		parent::startup();

	}

	protected function createComponentAddIdeaForm()
	{
		return new AddIdeaForm(
			$this->context->createTable('ideas')
		);
	}

	protected function createComponentIdeasList()
	{
		return new IdeasList(
			$this->context->createTable('ideas'),
			clone $this->accounts
		);
	}
}